package club.tclyq.good_time.common.utils.JsonUtils;

import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.node.ArrayNode;
import com.fasterxml.jackson.databind.node.ObjectNode;

/**
 * @author tanchong
 * Create Date: 2019/2/27
 */
public final class JsonUtils {

    public static final ObjectMapper OBJECT_MAPPER =  new ObjectMapper();
    /**
     * 创建对象节点。
     */
    public static ObjectNode createObjectNode() {
        return OBJECT_MAPPER.createObjectNode();
    }

    /**
     * 创建数组节点。
     */
    public static ArrayNode createArrayNode() {
        return OBJECT_MAPPER.createArrayNode();
    }

}
